package com.xls.commonlibrary.db.bean;

import io.objectbox.annotation.Entity;
import io.objectbox.annotation.Id;

@Entity
public class AdBean {// 广告统一使用表

    @Id(assignable = true)  //assignable= true可以手动指定id值，出现相同会替换；不写这个给id赋值会报错
    public long id = 0; // 主键 一般不需要改，自增的，替换就用id来替换

    public String type = "";// 哪家广告  共4种  取值于 Const 中
    public String time = "";
    public String ecpm = "";


    public AdBean(String type, String time, String ecpm) {
        this.type = type;
        this.time = time;
        this.ecpm = ecpm;
    }

    @Override
    public String toString() {
        return "AdBean{" +
                "id=" + id +
                ", type='" + type + '\'' +
                ", time='" + time + '\'' +
                ", ecpm='" + ecpm + '\'' +
                '}';
    }


    public long getId() {
        return id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getEcpm() {
        return ecpm;
    }

    public void setEcpm(String ecpm) {
        this.ecpm = ecpm;
    }
}
